package com.epam.weblibrary.repositories.order;

import com.epam.weblibrary.entities.order.Order;
import com.epam.weblibrary.entities.user.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by Iurii_Miedviediev on 9/11/2014.
 */
public interface OrderRepository extends JpaRepository<Order, Long> {
    List<Order> findByUser(User user);
}
